<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>查询配置管理</title>
    <%@include file="../../sys_common_head.jsp"%>
</head>
<body class="pear-container">

<div class="layui-card">
    <div class="layui-card-body">
        <table id="data-table" lay-filter="data-table"></table>
    </div>
</div>
</body>



<script>
    layui.use(['table', 'form', 'jquery','common'], function() {
        let table = layui.table;
        let form = layui.form;
        let $ = layui.jquery;
        let common = layui.common;

        let MODULE_PATH = "<%=request.getContextPath()%>/student/sqlquery/";

        let cols = [
            ${sqlQuery.colConfig}
        ]

        table.render({
            elem: '#data-table',
            url: MODULE_PATH + 'user_list/${sqlQuery.id}',
            page: false,
            method:'post',
            cols: cols,
            // limits: [10, 15, 20, 25, 50, 100],
            // limit: 15,
            toolbar: '#data-toolbar'
        });


        window.refresh = function () {
            table.reload('data-table');
        }
    })
</script>
</html>